package com.xd.core.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 分期债权退保
 * </p>
 *
 * @author ZX
 * @since 2025-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Surrenderinfo对象", description = "")
@Accessors(chain = true)
@Builder
public class Surrenderinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "债权id")
    private Integer debtId;

    @ApiModelProperty(value = "车牌号")
    private String carNo;

    @ApiModelProperty(value = "保单号")
    private String policyNo;

    @ApiModelProperty(value = "申请退保日")
    private Date applySurrenderDate;

    @ApiModelProperty(value = "退保类型 0:提前退保 1:逾期退保")
    private String surrenderType;

    @ApiModelProperty(value = "退保情况 0:部分退保 1:全部退保")
    private String surrenderSituation;

    @ApiModelProperty(value = "退保状态 0:退保中 1:已退保")
    private String status;

    @ApiModelProperty(value = "退保保单剩余应还本金(元)")
    private BigDecimal surrenderRemainPrincipal;

    @ApiModelProperty(value = "退保保单应还本月利息(元)")
    private BigDecimal surrenderCurrentInterest;

    @ApiModelProperty(value = "总计提前退保金额(元)")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "应退费用")
    private BigDecimal shouldRefundFee;

    @ApiModelProperty(value = "应补费用")
    private BigDecimal shouldLateSubmitFee;

    @ApiModelProperty(value = "是否上传退保凭证 0:否 1:是")
    private String isUploadVoucher;

    @ApiModelProperty(value = "其他费用")
    private BigDecimal otherFee;

    @ApiModelProperty(value = "退保保单总现金价值")
    private BigDecimal surrenderGuaranteeTotalAmount;

    @ApiModelProperty(value = "减免金额")
    private BigDecimal reliefAmount;

    @ApiModelProperty(value = "订单剩余本金")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "订单剩余利息")
    private BigDecimal orderInterest;

    @ApiModelProperty(value = "本次逾期天数")
    private Integer overdueDays;

    @ApiModelProperty(value = "本次逾期利息")
    private BigDecimal overdueInterest;

    @ApiModelProperty(value = "本次违约金")
    private BigDecimal penalty;

    @ApiModelProperty(value = "退保订单号")
    private Long uid;

    @ApiModelProperty(value = "退保前账单")
    private String historyBills;
}
